#ifndef MUSICLIST_H
#define MUSICLIST_H
#include<QVector>
#include"music.h"
#include<QUrl>
#include<QList>

typedef QVector<Music>::iterator iterator;

class MusicList
{
public:
    MusicList();

    void addMusicByUrl(const QList<QUrl>& musicUrls);

    iterator findMusicByMusicId(const QString &musicId);

    iterator begin();
    iterator end();
    void readFromDB();
    void writeToMusicDB();
    void push_back(Music m);




private:
    QVector<Music> musicList;

};

#endif // MUSICLIST_H
